<?php
require_once 'constants.php';
require_once 'db.php';

$publish_date = $_GET['publish_date'];
$row = dbGetImageInfoByPublishDate($publish_date);

header('content-type: image/jpg');
echo $row['image'];
?>
